package com.wzapp.sitposture.authentication.pojo.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * 功能: 自定义authuser设置密码盐<br/>
 *
 * @author ql
 * @version 0.4
 * @create 2018-06-07 14:42
 **/
@Data
public class AuthUser extends User {

    private String salt;

    public AuthUser(String username, String password, String salt, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.salt = salt;
    }
}
